﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<title>服务区-管理系统</title>
	<link rel="shortcut icon" href="//www.fuwuqu.com/ifs/netflag/favicon.ico" type="image/x-icon" />
	<!-- 
	<link rel="stylesheet" type="text/css" bms:href="@{/css/fonts/glyphicons-halflings-regular.ttf}" />
	<link rel="stylesheet" type="text/css" bms:href="@{/css/fonts/glyphicons-halflings-regular.woff}" />
	 -->
	<link rel="stylesheet" type="text/css" href="/BMS/css/DefaultSkin.css?v=20180828233854485" />
	<link rel="stylesheet" type="text/css" href="/BMS/css/load.css?v=20180828233854485" />
	<link rel="stylesheet" type="text/css" href="/BMS/css/control.css?v=20180828233854485" />
	<link rel="stylesheet" type="text/css" href="/BMS/css/page.css?v=1.0" />
	<link rel="stylesheet" type="text/css" href="/BMS/css/select2/select2.css?v=20180828233854485" />
	<link rel="stylesheet" type="text/css" href="/BMS/css/zTreeStyle/zTreeStyle.css?v=20180828233854485" />
	<link rel="stylesheet" type="text/css" href="/BMS/css/core.css?v=20180828233854485" />
	<link rel="stylesheet" type="text/css" href="/BMS/css/comm.css?v=20180828233854485" />
	<link rel="stylesheet" type="text/css" href="/BMS/js/plugins/file/uploadify/uploadify.css?v=20180828233854485" />
	<link rel="stylesheet" type="text/css" href="/BMS/js/plugins/treeview/jquery.treeview.css?v=20180828233854485" />
	<link rel="stylesheet" type="text/css" href="/BMS/css/multi-select.css?v=20180828233854485" />
	<link rel="stylesheet" type="text/css" href="/BMS/js/bsgrid/bsgrid.all.min.css?v=20180828233854485" />
	<link rel="stylesheet" type="text/css" href="/BMS/js/bsgrid/bsgrid.all.min.css?v=20180828233854485" />
	<link rel="stylesheet" type="text/css" href="/BMS/css/jeasy-ui/easyui.css?v=20180828233854485" />
	<link rel="stylesheet" type="text/css" href="/BMS/js/poshytip/tip-darkgray/tip-darkgray.css?v=20180828233854485" />
	<link rel="stylesheet" type="text/css" href="/BMS/css/addinfo.css?v=20180828233854485" />
	<link rel="stylesheet" type="text/css" href="/BMS/css/prettyPhoto.css?v=20180828233854485" />
	<link rel="stylesheet" type="text/css" href="/BMS/css/jquery-ui-1.10.4.custom.min.css?v=20180828233854485" />
	<link rel="stylesheet" type="text/css" href="/BMS/css/jquery.editable-select.min.css?v=20180828233854485" />
	<!-- bootstrap -->
	<link rel="stylesheet" type="text/css" href="/BMS/css/bootstrap/bootstrap.css?v=20180828233854485" />
	<link rel="stylesheet" type="text/css" href="/BMS/css/bootstrap/bootstrap-table.css?v=20180828233854485" />
	<link rel="stylesheet" type="text/css" href="/BMS/css/bootstrap/bootstrap-datetimepicker.css?v=20180828233854485" />
	<!-- task -->
	<link rel="stylesheet" type="text/css" href="/BMS/css/task/commTask.css?v=20180828233854485" />
	<!-- faq -->
	<link rel="stylesheet" type="text/css" href="/BMS/css/faq/faq.css?v=20180828233854485" />
	<!-- promotion -->
	<link rel="stylesheet" type="text/css" href="/BMS/css/promotion/promotion.css?v=20180828233854485" />

	<script type="text/javascript" src="/BMS/js/jquery-1.11.2.min.js?v=20180828233854523"></script>
	<script type="text/javascript" src="/BMS/js/plugins/comm/browser.js?v=20180828233854523"></script>
	<script type="text/javascript" src="/BMS/js/plugins/comm/jquery-ajax.js?v=20180828233854523"></script>
	<script type="text/javascript" src="/BMS/js/plugins/comm/jquery-ajax-response-handler.js?v=20180828233854523"></script>
	<script type="text/javascript" src="/BMS/js/plugins/comm/securityProtect.js?v=20180828233854523"></script>
	<script type="text/javascript" src="/BMS/js/public-obj.js?v=20180828233854523"></script>
	<script type="text/javascript" src="/BMS/js/bind.js?v=20180828233854523"></script>
	<script type="text/javascript" src="/BMS/js/controls.js?v=20180828233854523"></script>
	<script type="text/javascript" src="/BMS/js/slide.js?v=20180828233854523"></script>
	<script type="text/javascript" src="/BMS/js/switch.js?v=20180828233854523"></script>
	<script type="text/javascript" src="/BMS/js/initial.js?v=20180828233854523"></script>
	<script type="text/javascript" src="/BMS/js/printhtml.js?v=20180828233854523"></script>
	<script type="text/javascript" src="/BMS/js/listBox.js?v=20180828233854523"></script>

	<script type="text/javascript" src="/BMS/js/plugins/My97DatePicker/WdatePicker.js?v=20180828233854523"></script>
	<script type="text/javascript" src="/BMS/js/plugins/file/uploadify/jquery.uploadify.min.js?v=20180828233854523"></script>
	<script type="text/javascript" src="/BMS/js/plugins/layer/layer.js?v=20180828233854523"></script>
	<script type="text/javascript" src="/BMS/js/plugins/select2/select2.full.min.js?v=20180828233854523"></script>
	<script type="text/javascript" src="/BMS/js/plugins/select2/i18n/zh-CN.js?v=20180828233854523"></script>
	<script type="text/javascript" src="/BMS/js/plugins/treeview/jquery.treeview.js?v=20180828233854523"></script>
	<script type="text/javascript" src="/BMS/js/plugins/form/jquery.form.js?v=20180828233854523"></script>
	<script type="text/javascript" src="/BMS/js/plugins/ztree/jquery.ztree.core-3.5.js?v=20180828233854523"></script>
	<script type="text/javascript" src="/BMS/js/plugins/ztree/jquery.ztree.excheck-3.5.js?v=20180828233854523"></script>
	<script type="text/javascript" src="/BMS/js/plugins/comm/constant.js?v=20180828233854523"></script>
    <!--
	<script type="text/javascript" src="/BMS/js/plugins/comm/common.js?v=20180828233854523"></script>
    -->
    <script type="text/javascript" src="/CMS/js/plugins/comm/common.js?version=20171219"></script>
	<script type="text/javascript" src="/BMS/js/plugins/comm/bmsAjax.js?v=20180828233854523"></script>
	<script type="text/javascript" src="/BMS/js/plugins/comm/validata.js?v=20180828233854523"></script>
	<script type="text/javascript" src="/BMS/js/plugins/validate/jquery.validate.revise.js?v=20180828233854523"></script>
	<script type="text/javascript" src="/BMS/js/plugins/validate/localization/messages_zh.min.js?v=20180828233854523"></script>
	<script type="text/javascript" src="/BMS/js/plugins/validate/regValidate.js?v=20180828233854523"></script>
	<script type="text/javascript" src="/BMS/js/popup_layer.js?v=20180828233854523"></script>
	<script type="text/javascript" src="/BMS/js/jquery_magnifier.js?v=20180828233854523"></script>
	<script type="text/javascript" src="/BMS/js/jquery.multi-select.js?v=20180828233854523"></script>
	<script type="text/javascript" src="/BMS/js/jquery.quicksearch.js?v=20180828233854523"></script>
	<script type="text/javascript" src="/BMS/js/jquery.easyui.min.js?v=20180828233854523"></script>
	<script type="text/javascript" src="/BMS/js/jquery.prettyPhoto.js?v=20180828233854523"></script>

	<script type="text/javascript" src="/BMS/js/bootstrap-paginator/js/bootstrap-paginator.min.js?v=20180828233854523"></script>

	<script type="text/javascript" src="/BMS/js/bsgrid/grid.zh-CN.min.js?v=20180828233854523"></script>
	<script type="text/javascript" src="/BMS/js/bsgrid/bsgrid.all.min.js?v=20180828233854523"></script>
	<script type="text/javascript" src="/BMS/js/bsgrid/grid.extend.min.js?v=20180828233854523"></script>
	<script type="text/javascript" charset="UTF-8" src="/BMS/js/poshytip/jquery.poshytip.js?v=20180828233854523"></script>

	<script type="text/javascript" src="/BMS/js/jquery-ui-1.10.4.custom.min.js?v=20180828233854523"></script>
	<script type="text/javascript" src="/BMS/js/joinUs/AddListBox.js?v=20180828233854523"></script>
	<script type="text/javascript" src="/BMS/js/jquery.editable-select.min.js?v=20180828233854523"></script>
	<!-- echarts -->
	<script type="text/javascript" src="/BMS/js/echarts/dist/echarts.js?v=20180828233854523"></script>
	<script type="text/javascript" src="/BMS/js/echarts/dist/chart/bar.js?v=20180828233854523"></script>
	<script type="text/javascript" src="/BMS/js/echarts/dist/chart/line.js?v=20180828233854523"></script>
	<script type="text/javascript" src="/BMS/js/echarts/dist/chart/pie.js?v=20180828233854523"></script>
	<script type="text/javascript" src="/BMS/js/echarts/dist/chart/funnel.js?v=20180828233854523"></script>
	<!-- bootstrap -->
	<script type="text/javascript" src="/BMS/js/bootstrap/bootstrap.js?v=20180828233854523"></script>
	<script type="text/javascript" src="/BMS/js/bootstrap/bootstrap-table.js?v=20180828233854523"></script>
	<script type="text/javascript" src="/BMS/js/bootstrap/bootstrap-table-control.js?v=20180828233854523"></script>
	<script type="text/javascript" src="/BMS/js/bootstrap/bootstrap-datetimepicker.min.js?v=20180828233854523"></script>
	<script type="text/javascript" src="/BMS/js/bootstrap/bootstrap-datetimepicker.zh-CN.js?v=20180828233854523"></script>
	<script type="text/javascript" src="/BMS/js/bootstrap/bootstrap-table-sticky-header.js?v=20180828233854523"></script>
	<!-- task -->
	<script type="text/javascript" src="/BMS/js/task/commTask.js?v=20180828233854523"></script>

	<script type="text/javascript">
		/*<![CDATA[*/
		           
		//是否Debug
		document.isDebug = false;
		//设置domain
		document.domain = location.hostname;
		
		//LOGO图片地址
		var _LOGO_URL = '';
		
		//验证码相关链接
		var _SECURITY_PROTECT_VERIFY_URL = '/BMS/securityProtect/verify.ht';
		var _SECURITY_PROTECT_CHECK_URL = '/BMS/securityProtect/check.ht';
		var _SECURITY_PROTECT_CHECK_VERIFY_URL = '/BMS/securityProtect/checkverify.ht';
		
		//展示任务列表
		function showTask(){
			var url = '/BMS/task/list.ht';
	 	   	window.top.addTabs(url,'任务列表');
		}
	      
		/*<![CDATA[*/
		$(function(){
			
			//定义MenuControl
			function menuControl(){
				var _options = this.options = {
					openCls:"active_subopen",//展开子列表后菜单盒子的class名
					disableCls:"active_subdisable",//展开子列表后菜单盒子的class名
	                menuWarpCls:"content",
	                menuSmall:"menu-small"
				};
				this.menuBox = $(".grid-s5m0");
	           	this.menuWarp = $("#"+_options.menuWarpCls);
	           	this.menuSmallBtn = this.menuBox.find(".menu-small-btn");
				this.menuBoxList = $(".menu-box-list .dd-item");
				this.menuIndex = $(".menu-box-list .dd-index");
				this.submenuOpenBtn = this.menuBox.find(".submenu-open");
				this.subMenuBox = this.menuBox.find(".dd-inner");
				this._userState = false;
	              	this._hide();
	              	this._menuBig();
	             	this._disable();
				this._bind();
			}
					
			menuControl.prototype={
				/**
				* Resize
				*/
				_resize : function(){
					var _this = this;
	           		var win = $(window);
	          			var count = 5;
	           		_this._timeout && clearTimeout(_this._timeout);
						function wresize(){
							win.resize();
	               			count--;
	               			if(count>0){
	               				_this._timeout && clearTimeout(_this._timeout);
	                   			_this._timeout=setTimeout(function(){
	                   			wresize();
	               			},100);
	               		}
					}
	           		wresize();
				},
		
				/**
				*隐藏菜单
				*/
				_hide : function(){
					var _this=this,
					_tempOption=this.options;
			
					_this._state=false;
					// _this.menuBox.css({"width":"0px"});
	
					_this.menuBox.removeClass(_tempOption.disableCls);
					_this.menuBox.removeClass(_tempOption.openCls);
					_this._resize();
				},
	               /**
	               * Disable
	               */
				_disable : function(){
					var _this = this
					_tempOption = this.options;
	           		
					_this.menuBox.addClass(_tempOption.disableCls);
	           		_this.menuBox.removeClass(_tempOption.openCls);
	           		_this._resize();
	       		},
	
	      			/**
				*打开菜单
				*/
				_open : function(){
					var _this = this,
					_tempOption = this.options;
	
					_this._state = true;
					//_this.menuBox.css({"width":"180px"});
	           		_this.menuBox.removeClass(_tempOption.disableCls);
					_this.menuBox.addClass(_tempOption.openCls);
					_this._resize();
				},
	               
		        /**
		         * 最小化菜单
		         */
	       		_menuSmall : function(){
					var _this = this,
					_tempOption = this.options;
	                   
					_this._menuState=false;
	
	           		_this.menuWarp.addClass(_tempOption.menuSmall);
	           		_this._resize();
				},
	               
				/**
                * 最大化菜单
                * @private
                */
               	_menuBig : function(){
                	var _this = this,
					_tempOption = this.options;
                   
                   	_this._menuState=true;
                   
                   	_this.menuWarp.removeClass(_tempOption.menuSmall);
                   	_this._resize();
               	},
               	
               	/**
               	* Bind Event
               	*/
				_bind : function(){
					var _this = this;
					_this.menuSmallBtn.bind("click",function(){
						if(_this._menuState){
		                	_this._userState=false;
							_this._menuSmall();
						}else{
		                	_this._userState=true;
							_this._menuBig();
						}
					});
					
		            _this.submenuOpenBtn.bind("click",function(){
						if(_this._state){
							_this._hide();
						}else{
							_this._open();
						}
					});
					
		            _this.menuIndex.bind("click",function(){
		            	_this._disable();
					});
					
		            _this.menuBoxList.bind("click",function(){
		            	if(!_this._userState){
		                	_this._menuSmall();
						}
						_this._open();
					});
				},
				
				onSelect : function(){
					alert('select');
				}
			};
	
			/**
			* 初始化一个菜单
			*/
			new menuControl();
	
			function SetScroll() {
			    this._bind();
			}
	
			SetScroll.prototype = {
			    /**
			     * 添加事件方法
			     * @param {function} fn 事件调用的方法
			     * @param {Node} node 事件需要操作的节点                
			     */
			    addEvent: function (fn, node) {
			        if (fn && $.isFunction(fn)) {
			            this.eventList = this.eventList || [];
			            this.eventList.push({ fn: fn, node: node });
			        }
			    },
	
			    /**
			     * 事件触发时执行的事件
			     */
			    triggerEvt: function () {
			        var _this = this,
		            bodyscrollTop = _this._getScrollNode();
	
		        	_this.eventList && $.each(_this.eventList, function () {
		           		this.fn(bodyscrollTop.scrollTop, this.node);
		        	});
		    	},
		    	
			    /**
			     * 获取支持scrollTop的元素
			     * @protected
			     * @returns {Node} 返回支持Dom节点scrollTop的元素
			     */
			    _getScrollNode: function () {
			        return document.documentElement && document.documentElement.scrollTop ? document.documentElement : document.body;
			    },
			    
			    /**
			     * 绑定事件
			     * @protected
			     */
			    _bind: function () {
			        var _this = this;
			        $(window).bind("scroll", function () {
			            _this.triggerEvt();
			        });
			    }
			};
	
			var scroll = new SetScroll();//滚动条对象
			var menuBox = $(".menu-box");
			var ddinner = $(".dd-inner");//子菜单列表盒子
	
	
			scroll.addEvent(function(scrollTop,scrolla){
				var top = 50 - scrollTop;
				if(top <= 0){
					top=0;
				}
				scrolla.css({top:top});
				ddinner.css({top:top});
			} , menuBox);
	
			// $(".grid-s5m0 .main-wrap").css({"margin-left":"360px"});
			//图片加载错误
			$("img").error(function(){
				$(this).attr("src", '/BMS/img/u146.png?');//设置默认图片
			});
			
			$("#menu_tree").bind('click',function(event){
				if(event.target.className.indexOf("hitarea")>-1){
					if(YW.newobj){
						if(YW.newobj.leftheigth){
							YW.newobj.leftheigth.setSize();
						}
					}
				}
			})
			
			$(".item-hd,.dd-nav").bind('click',function(){
				if(YW.newobj){
					if(YW.newobj.leftheigth){
						YW.newobj.leftheigth.setSize();
					}
				}
			})
		});
		
		/*]]>*/
	</script>
</head>
	<body class="bgcolor-body">
		<div>
	<form id="frm" name="frm" method="post" action="/BMS/bmsUser/showList.ht">
			<div class="icip_skin_box">
				<div>
	<script type="text/javascript" src="/BMS/js/breadCrumbNavigation/navigation.js?v=20180828233854523"></script>
	<div class="cur-position"></div>
</div>
				<div class="icip_content_box">
					<div>
	<div class="icip_title_box">
		<div class="left">
			<span class="icip_title_text">管理用户列表</span>
		</div>
		<div class="right">
			<span class="icip_button icip_button_c3">
				<a style="color: white;" title="点击新增用户信息" class="ks-pop-nav" href="/BMS/bmsUser/openSavePage.ht?add=1">
					新建用户
				</a>
			</span>
		</div>
	</div>
</div>
					<div>
	<div class="icip_search_wrap">
		<div class="icip_search">
			<!-- search -->
			<input class="icip_inupt" type="text" name="search" id="search" placeholder="人员名称" value="${search.decode('gbk').encode('utf-8') if search else ''}" />
			<input class="icip_button icip_button_c2" type="submit" value="搜索" />
		</div>
	</div>
	<div class="list-table-cont">
		<table class="icip_table">
			<tr class="icip_th">
				<td width="30px">&nbsp;</td>
				<td class="col2">人员名称</td>
				<td class="col3">角色名称</td>
				<td class="col4">类型</td>
				<td class="col5">公司名称</td>
				<td class="col6">操作</td>
			</tr>
		%for row in result_list:
			<tr onmouseover="this.style.backgroundColor=&#39;#e3f1ff&#39;" onmouseout="this.style.backgroundColor=&#39;#ffffff&#39;">
				<td class="col1">
					<div class="JsW control-checkbox" data-control-type="checkbox">
						<input type="checkbox" name="ids" value="${row._id}" />
					</div>
				</td>
				<td class="col2">${row.username.encode('utf-8')}</td>
				<td class="col3">
                %for roleId in row.roleIds.split(","):
                ${ROLE_DICT.get(roleId,'').encode('utf-8')},
                %endfor
                </td>
				<td class="col4">${BMSUSER_TYPE.get(row.userType,"").decode('gbk').encode('utf-8')}</td>
				<td class="col5">${row.communityname.encode('utf-8') if row.communityname else ''}</td>
				<td class="col6">
				    <a class="btn btn-default" href="javascript:void(0);" title="点击查看用户信息" onclick="view(&#39;${row.userid}&#39;, this)">查看</a>
				    <a class="btn btn-default" href="javascript:void(0);" title="点击修改用户信息" onclick="updateUser(&#39;${row.userid}&#39;, this)">修改</a>
					<a class="btn btn-default" href="javascript:void(0);" title="点击重置密码" onclick="resetpwd(&#39;${row.userid}&#39;, this)">重置密码</a>
				</td>
			</tr>
		%endfor
		</table>
	</div>
</div>
					<div>
	<div class="icip_footer_page">
		<div class="left">
			<div class="JsW control-checkbox" data-control-type="checkboxall">
				<input type="checkbox" />
			</div>
			<span class="checkall_txt">全选</span>
            <span class="icip_button">
            	<a href="javascript:void(0)" role="button" title="点击删除" onclick="javascript:del(&#39;frm&#39;,&#39;/BMS/bmsUser/deluser.ht&#39;,&#39;您确定要删除？&#39;)">删除</a>
            </span>
		</div>
		<div class="right">
			<div>
	<div class="right">
		<span class="icip_btn_more">
				<input id="pageSize" name="pageSize" type="hidden" value="${pageSize}" />
				<span class="icip_more_icon icip_more_show">
					每页
					<span id="pageSizeChange">${pageSize}</span>
					条
				</span>
				<div class="icip_pull_wrap">
					<div class="icip_pull_box">
						<ul class="icip_pull_list">
							<li name="10" class="icip_pull_item">10</li>
							<li name="15" class="icip_pull_item">15</li>
							<li name="20" class="icip_pull_item">20</li>
							<li name="30" class="icip_pull_item">30</li>
							<li name="50" class="icip_pull_item icip_button_c2">50</li>
							<li name="100" class="icip_pull_item">100</li>
							<li name="150" class="icip_pull_item">150</li>
							<li class="icip_pull_item" name="0"></li>
							<li class="icip_pull_item" name="0"></li>
						</ul>
					</div>
				</div>
			</span>
			<span>
				<span name="pageNum" id="pagenumber">${pageNum}</span>
				<span>页</span>
				<input type="hidden" name="pageNum" id="pagenumberHidden" value="${pageNum}" />
				/
				<span id="_pages">${page_count}</span>
				<span>页</span>
			</span>
			<span class="icip_aspect_wrap">
				<span class="icip_button_navigation icip_iconfont icip_aspect">
					<a href="javascript:void(0);" title="点击查看上一页" onclick="${'go(%d)'%(int(pageNum)-1) if int(pageNum)-1>0 else 'return false;'}">&#xe624;</a>
				</span>
				<span class="icip_button_navigation icip_iconfont icip_aspect">
					<a href="javascript:void(0);" title="点击查看下一页" onclick="${'go(%d)'%(int(pageNum)+1) if int(pageNum)+1<=int(page_count) else 'return false;'}">&#xe625;</a>
				</span>
			</span>
			<span class="item-count">
				<span>共：</span>
				<span id="_pageTotal">${record_count}</span>
				条
			</span>
	</div>
</div>
		</div>
	</div>
</div>
				</div>
			</div>
	</form>
</div>
		<div>
	<div id="_proccesBar" class="JsW keypayment" data-position-type="fixed" data-position-config="{}" data-widget-type="popup" data-widget-config="{&#39;contentId&#39;:true,&#39;contentCls&#39;:&#39;ks-load&#39;}" style="display: none;">
		<div class="JsW load-box" id="ks-load" data-size-type="widescreen">
			<div class="JsW bg alpha30"></div>
			<div class="JsW load-pop-box" data-align-type="align" data-align-config="{&#39;lframe&#39;:&#39;ks-load&#39;}">
				<img class="rotate" alt="" src="/BMS/img/loading.png" />
			</div>
		</div>
		<div class="ks-pop-nav"></div>
	</div>
	<div id="_proccesBar_no_close" class="JsW keypayment" data-position-type="fixed" data-position-config="{}" data-widget-type="popup" data-widget-config="{&#39;contentId&#39;:true,&#39;contentCls&#39;:&#39;ks-load&#39;,&#39;keyCode&#39;:[]}" style="display: none;">
		<div class="JsW load-box" id="ks-load" data-size-type="widescreen">
			<div class="JsW bg alpha30"></div>
			<div class="JsW load-pop-box" data-align-type="align" data-align-config="{&#39;lframe&#39;:&#39;ks-load&#39;}">
				<img class="rotate" alt="" src="/BMS/img/loading.png" />
			</div>
		</div>
		<div class="ks-pop-nav"></div>
	</div>
</div>
		
		<script type="text/javascript" xml:space="preserve">
			var _BMSUSER_UPDATE_URL = '/BMS/bmsUser/openUpdatePage.ht';
			var _BMSUSER_VIEW_URL = '/BMS/bmsUser/view.ht';
			var _BMSUSER_RESET_PASSWORD_URL = '/BMS/bmsUser/resetPWD.ht';
		</script>
		<script type="text/javascript" xml:space="preserve" src="/BMS/js/bmsUser/list.js?v=20180828233854523"></script>
	</body>
</html>